<html>
<body>
<?php

$b = array (
		1,
		2,
		4,
		5,
		3,
		9 
);
echo count ( $b ) . "<br/>"; // 6

$a = array (
		1,
		2,
		4,
		5,
		3,
		9 
);
echo "before sorting: <br />";
foreach ( $a as $key => $value ) {
	echo "a[$key]: $value <br />";
}
sort ( $a );
echo "after sorting: <br />";
foreach ( $a as $key => $value ) {
	echo "a[$key]: $value <br />";

}

$fruits = array (
		"d" => "lemon",
		"a" => "orange",
		"b" => "banana",
		"c" => "apple" 
);
ksort ( $fruits );
foreach ( $fruits as $key => $val ) {
	echo "$key : $val <br />";

}

$a = array (
		"a" => "apple",
		"b" => "banana" 
);
$b = array (
		"a" => "pear",
		"b" => "strawberry",
		"c" => "cherry" 
);

$c = $a + $b;

var_dump ( $c );
?>
</body>

</html>
